<?php

namespace App\Http\Controllers\Front;

use App\Http\Controllers\Controller;
use App\Model\Front\Adress;
use App\User;
use Illuminate\Http\Request;

class ProfileController extends Controller
{
    public function index()
    {
        return view('front.profile.index');
    }

    public function adress()
    {
        $adresses = User::find(auth()->id())->adress()->get();
        // dd($adresses);
        return view('front.profile.adress', compact('adresses'));
    }
}
